package com.lelefly.base.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * RegInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "reg_info", catalog = "lelefly")
public class RegInfo implements java.io.Serializable {

	// Fields

	private Integer id;
	private String tel;
	private Integer count;
	private String regCode;
	private String expiredTime;
	private String mesType;

	// Constructors

	/** default constructor */
	public RegInfo() {
	}

	/** minimal constructor */
	public RegInfo(String tel) {
		this.tel = tel;
	}

	/** full constructor */
	public RegInfo(String tel, Integer count, String regCode, String expiredTime,String mesType) {
		this.tel = tel;
		this.count = count;
		this.regCode = regCode;
		this.expiredTime = expiredTime;
		this.mesType = mesType;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "tel", nullable = false, length = 20)
	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "count")
	public Integer getCount() {
		return this.count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	@Column(name = "reg_code")
	public String getRegCode() {
		return this.regCode;
	}

	public void setRegCode(String regCode) {
		this.regCode = regCode;
	}

	@Column(name = "expired_time")
	public String getExpiredTime() {
		return this.expiredTime;
	}

	public void setExpiredTime(String expiredTime) {
		this.expiredTime = expiredTime;
	}
	
	@Column(name = "mes_type")
	public String getMesType(){
		return this.mesType;
	}
	
	public void setMesType(String mesType){
		this.mesType = mesType;
	}
}